import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import user from './modules/user'
import enhance from './modules/enhance'
import online from './modules/online'
import permission from './modules/permission'
import im from './modules/im'
import netdisk from './modules/netdisk'
import tw from './modules/tw'
import getters from './getters'
import materialprocurementplan from './modules/purchase/materialProcurementPlan'
import materialApplication from './modules/purchase/materialApplication'
import materialProcurementOrder from './modules/purchase/materialProcurementOrder'
import materialprocurement from './modules/purchase/materialProcurement'
import sparePartPurchaseBill from './modules/purchase/sparePartPurchaseBill'
import packageMaterialPurchaseBill from './modules/purchase/packageMaterialPurchaseBill'
import tslCommonInstockBill from './modules/wm/tslCommonInstockBill'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    enhance,
    online,
    im,
    netdisk,
    tw,
    materialprocurementplan,
    materialApplication,
    materialProcurementOrder,
    materialprocurement,
    sparePartPurchaseBill,
    packageMaterialPurchaseBill,
    tslCommonInstockBill,
  },
  state: {},
  mutations: {},
  actions: {},
  getters,
})
